package com.muh.repository;

import com.muh.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface UserRepository extends ElasticsearchRepository<User, Long> {
    List<User> findUsersByDescription(String description);

    Page<User> findUsersByDescription(String description, Pageable pageable);
}